<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/webwork" prefix="ww"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>Order Details</title>
  </head>
  <body>

<%@ include file="/admin-header.html" %>

  <h2>Order Number "<ww:property value="orderId" />" Details</h2>

  <table border="1">
    <tr>
      <th colspan="2">Customer Order Information</th>
    </tr>
    <tr>
      <td><b>Order Status</b></td>
      <td><b><ww:property value="myOrder.orderStatus.step" /> - 
          <ww:property value="myOrder.orderStatus.name" /></b>
      </td>
    </tr>
    <tr>    
      <td><b>Time Stamp</b></td>
      <td><ww:property value="myOrder.timeStamp"/></td>
    </tr>
    <tr>    
      <td><b>Name</b></td>
      <td><ww:property value="myOrder.firstName" /> <ww:property value="myOrder.lastName" /></td>
    </tr>
    <tr>
      <td><B>Address</b></td>
      <td><ww:property value="myOrder.address1" /><BR><ww:property value="myOrder.address2" /></td>
    </tr>
    <tr>
      <td><b>City</b></td>
      <td><ww:property value="myOrder.city" /></td>
    </tr>
    <tr>
      <td><b>State</b></td>
      <td><ww:property value="myOrder.state" /></td>
    </tr>
    <tr>
      <td><b>Zip Code</b></td>
      <td><ww:property value="myOrder.zip" /></td>
    </tr>
    <tr>
      <td><b>Phone Number</b></td>
      <td><ww:property value="myOrder.phone" /></td>
    </tr>
    <tr>
      <td><b>Credit Card Type</b></td>
      <td><ww:property value="myOrder.ccType" /></td>
    </tr>
    <tr>
      <td><b>Credit Card Number</b></td>
      <td><ww:property value="myOrder.ccNumber" /></td>
    </tr>
    <tr>
      <td><b>Credit Card Expiration Date</b></td>
      <td><ww:property value="myOrder.ccExpiration" /></td>
    </tr>
    <tr>
      <td><b>Credit Card Security Number</b></td>
      <td><ww:property value="myOrder.ccSecurity" /></td>
    </tr>
  </table>
  
<BR><BR>
  
  <table border="1">
    <tr>
      <th colspan="6">Order Number <ww:property value="orderId" /> Item List</th>
    </tr>
    <tr>
      <td>Item Number</td>
      <td>SKU</td>
      <td>Name</td>
      <td>Description</td>
      <td align="right">Quantity</td>
      <td align="right">Cost Per Item</td>
    </tr>
    
    <ww:iterator value="orderItems">
      <tr>
        <td align="right"><ww:property value="item.id" /></td>
        <td><ww:property value="item.sku" /></td>
        <td><ww:property value="item.name" /></td>
        <td><ww:property value="item.description" /></td>
        <td align="right"><ww:property value="quantity" /></td>
        <td align="right">$<ww:property value="cost" /></td>
      </tr>
    </ww:iterator>
    
    <tr>
      <td></td>
      <td colspan="4" align="right">Total Cost</td>
      <td align="right">$<ww:property value="totalCost" /></td>
    </tr>
    <tr>
      <td></td>
      <td colspan="4" align="right">Total Tax</td>
      <td align="right">$<ww:property value="totalTax" /></td>
    </tr>
    <tr>
      <td></td>
      <td colspan="4" align="right">
        <ww:property value="myOrder.shippingOption.companyName" /> - 
        <ww:property value="myOrder.shippingOption.serviceName" /> - Delivery in 
        <ww:property value="myOrder.shippingOption.time" /> Day(s) - Shipping</td>
      <td align="right">$<ww:property value="myOrder.shippingCost" /></td>
    </tr>
    <tr>
      <td></td>
      <td colspan="4" align="right">Total Price</td>
      <td align="right">$<ww:property value="totalPrice" /></td>
    </tr>

  </table>
  
    </body>
</html>